package com.atguigu.spring5.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

// @Configuration 作为配置类，替代xml配置文件
// @ComponentScan 开启组件扫描
// @ComponentScan(basePackages={"com.atguigu.spring5"})  等价于xml中的 <context:component-scan base-package="com.atguigu.spring5"></context:component-scan>
@Configuration
@ComponentScan(basePackages={"com.atguigu.spring5"})
public class SpringConfig {
}
